package cn.sumpu.app.coolsk.dao;

import java.util.List;
import java.util.Map;

import cn.sumpu.app.coolsk.domain.Discuss;
import cn.sumpu.app.coolsk.exception.AppBusinessException;

public interface DiscussDao {
	
	public void insert(Discuss discuss)throws AppBusinessException;
	//
	public Discuss selectAvgDisByMap(Map<String, Object> map)throws AppBusinessException;
	//
	public List<Discuss> getAllDiscuss(Map<String, Object> map) throws AppBusinessException;
	//
	public int getAllDiscussCount(Map<String, Object> map)throws AppBusinessException;
	//
	public Discuss getDiscussById(String id) throws AppBusinessException;
	//
	public void updateDisById(Map<String, Object> map)throws AppBusinessException;
	//
	public List<Discuss> getDiscussListByObj(Map<String, Object> map) throws AppBusinessException;
	//
	public int getDiscussCountByObj(Map<String, Object> map)throws AppBusinessException;

}
